<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DIS_WEB_Client.ViewModels.GroupViewModel>" %>
<div class="AdminPageText">
List Of WeeklyReport
</div>
<table class="Grid" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th>StartDate</th>
			<th>EndDate</th>
			<th>Note</th>
			<th></th>
		<tr>
	</thead>
	<% for (int i=0; i<Model.WeeklyReportModel.GetModel.LstObjModel.Count; i++){
		if (i % 2 != 0) {%>
		<tr class="Row" id="row-<%= Model.WeeklyReportModel.GetModel.LstObjModel[i].ID %>">
		<% }
		else { %>
		<tr class="AlternatingRow" id="row-<%= Model.WeeklyReportModel.GetModel.LstObjModel[i].ID %>">
		<% } %>
			<td><span style=""><%= String.Format("{0:dd/MM/yyyy}", Model.WeeklyReportModel.GetModel.LstObjModel[i].StartDate) %></span></td>
			<td><span style=""><%= String.Format("{0:dd/MM/yyyy}", Model.WeeklyReportModel.GetModel.LstObjModel[i].EndDate) %></span></td>
			<td><span style=""><%= Html.Truncate(Model.WeeklyReportModel.GetModel.LstObjModel[i].Note, 100) %></span></td>
			<td>
                <a href="../../Admin/DetailOfWeeklyReport?id=<%= Model.WeeklyReportModel.GetModel.LstObjModel[i].ID %>">
					<span style="color: Blue; text-decoration: underline">Select</span>
				</a>
			</td>
		</tr>
	<% } %>  
</table>
